<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PowerVR SDK</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<table width="100%">
  <tr>
    <td width="33%">
      <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
    </td>
    <td width="33%">
      <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
    </td>
    <td width="34%">
      <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
    </td>
  </tr>
</table>
<hr>
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>PVRShell.cpp File Reference</h1><code>#include &lt;stdio.h&gt;</code><br>
<code>#include &lt;stdlib.h&gt;</code><br>
<code>#include &lt;string.h&gt;</code><br>
<code>#include &lt;stdarg.h&gt;</code><br>
<code>#include "<a class="el" href="PVRShell_8h-source.html">PVRShell.h</a>"</code><br>
<code>#include "<a class="el" href="PVRShellOS_8h-source.html">PVRShellOS.h</a>"</code><br>
<code>#include "<a class="el" href="PVRShellAPI_8h-source.html">PVRShellAPI.h</a>"</code><br>
<code>#include "<a class="el" href="PVRShellImpl_8h-source.html">PVRShellImpl.h</a>"</code><br>
<code>#include "../Builds/sdkver.h"</code><br>

<p>
Include dependency graph for PVRShell.cpp:<p><center><img src="PVRShell_8cpp__incl.png" border="0" usemap="#PVRShell.cpp_map" alt="Include dependency graph"></center>
<map name="PVRShell.cpp_map">
<area href="PVRShell_8h.html" shape="rect" coords="143,81,233,108" alt="">
<area href="PVRShellOS_8h.html" shape="rect" coords="441,81,551,108" alt="">
<area href="PVRShellAPI_8h.html" shape="rect" coords="575,81,687,108" alt="">
<area href="PVRShellImpl_8h.html" shape="rect" coords="711,81,828,108" alt="">
</map>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a0">PVRSHELL_QUIT_AFTER_FRAME</a>&nbsp;&nbsp;&nbsp;-1</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a1">PVRSHELL_QUIT_AFTER_TIME</a>&nbsp;&nbsp;&nbsp;-1</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a2">PVRSHELL_SCREENSHOT_NAME</a>&nbsp;&nbsp;&nbsp;"PVRShell"</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a3">ByteSwap</a>(x)&nbsp;&nbsp;&nbsp;PVRShellByteSwap((unsigned char*) &amp;x, sizeof(x))</td></tr>

<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a7">PVRShellByteSwap</a> (unsigned char *pBytes, int i32ByteNo)</td></tr>

<tr><td colspan=2><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a4">g_i32BMPHeaderSize</a> = 14</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a5">g_i32BMPInfoSize</a> = 40</td></tr>

</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="a3" doxytag="PVRShell.cpp::ByteSwap" ></a><p>
<br><br><h3>ByteSwap</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define ByteSwap</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">x&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;PVRShellByteSwap((unsigned char*) &amp;x, sizeof(x))
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a class="anchor" name="a0" doxytag="PVRShell.cpp::PVRSHELL_QUIT_AFTER_FRAME" ></a><p>
<br><br><h3>PVRSHELL_QUIT_AFTER_FRAME</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define PVRSHELL_QUIT_AFTER_FRAME&nbsp;&nbsp;&nbsp;-1
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Define to automatically stop the app after x frames. If negative, run forever.     </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="PVRShell.cpp::PVRSHELL_QUIT_AFTER_TIME" ></a><p>
<br><br><h3>PVRSHELL_QUIT_AFTER_TIME</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define PVRSHELL_QUIT_AFTER_TIME&nbsp;&nbsp;&nbsp;-1
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Define to automatically stop the app after x amount of seconds. If negative, run forever.     </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="PVRShell.cpp::PVRSHELL_SCREENSHOT_NAME" ></a><p>
<br><br><h3>PVRSHELL_SCREENSHOT_NAME</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define PVRSHELL_SCREENSHOT_NAME&nbsp;&nbsp;&nbsp;"PVRShell"
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Define for the screen shot file name.     </td>
  </tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a7" doxytag="PVRShell.cpp::PVRShellByteSwap" ></a><p>
<br><br><h3>PVRShellByteSwap</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void PVRShellByteSwap </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned char *&nbsp;</td>
          <td class="mdname" nowrap> <em>pBytes</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>i32ByteNo</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Inputs:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>pBytes</em>&nbsp;</td><td>The bytes to swap </td></tr>
    <tr><td valign=top><em>i32ByteNo</em>&nbsp;</td><td>The number of bytes to swap </td></tr>
  </table>
</dl>
<dl compact><dt><b>Description:</b></dt><dd>Swaps the bytes in pBytes from little to big endian (or vice versa) </dd></dl>
    </td>
  </tr>
</table>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="a4" doxytag="PVRShell.cpp::g_i32BMPHeaderSize" ></a><p>
<br><br><h3>g_i32BMPHeaderSize</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const int <a class="el" href="PVRShell_8cpp.html#a4">g_i32BMPHeaderSize</a> = 14
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The size of a BMP header     </td>
  </tr>
</table>
<a class="anchor" name="a5" doxytag="PVRShell.cpp::g_i32BMPInfoSize" ></a><p>
<br><br><h3>g_i32BMPInfoSize</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const int <a class="el" href="PVRShell_8cpp.html#a5">g_i32BMPInfoSize</a> = 40
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The size of a BMP info header     </td>
  </tr>
</table>
<br>
<br>
<P align=left><FONT size=2><STRONG><A 
   href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> � 
   1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
<hr>
<address style="align: left;"><small><FONT color=f0f>
Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
</body>
</html>
